-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent theme, plugin and author files being created that differ only in case of name #608
Conversation
Co-Authored-By: Andrew Nutter-Upham <[email protected]>
Co-Authored-By: Andrew Nutter-Upham <[email protected]>
Co-Authored-By: Andrew Nutter-Upham <[email protected]>
Co-Authored-By: Andrew Nutter-Upham <[email protected]>
Co-Authored-By: Andrew Nutter-Upham <[email protected]>
Co-Authored-By: Andrew Nutter-Upham <[email protected]>
Co-Authored-By: Andrew Nutter-Upham <[email protected]>
I realised a small limitation in what we created... If a new author releases 2 new themes or plugins in the same week, and capitalises their user name inconsistently, both files will get created, as we don't update the dictionary as each new file comes in... I say 'small' as the chances of a new author both these is very small:
So, given that we have fixed the most common case, I would really like to get this merged before this week's GitHub Action cron jobs run, if at all possible... |
Hi @kometenstaub, as you have kindly done reviews before, if by any chance you had time to give this a once-over, it would really help. It was done entirely by pairing - I just can't approve it because we started on my machine, so it's done in my account. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed all the logic, and it looks good to me! Thank you for implementing this. :)
Thank you very much! |
Changes
FileNameCaseCollisionsPreventer
inutils.py
that:.github/scripts/tests/test_utils.py
to use the above, when writing notes for:utils.py
:get_output_dir()
toget_output_path()
get_output_dir()
that really does return a directoryThis work was done by pairing with @andynu - who was involved in all commits except the last one, where I moved
FileNameCaseCollisionsPreventer
toutils.py
.Context:
Checklist
Not applicable...